<div id="main_content">
	<!-- <div class="project_img">
		<img src="http://chart.apis.google.com/chart?chs=90x90&amp;cht=p&amp;chco=77AB5D|E8BA2F|b55252|568bbc|bbbbbb|dddddd|444444&amp;chd=t:{@pp:todo_finished},{@pp:todo_on_schedule},{@pp:todo_behind_schedule},{@pp:todo_waiting},{@pp:todo_new}&amp;chp=0&amp;chma=0|0&amp;chof=png" />	
	</div> -->
	<div class="title_action">
		<span class="title">{@pp:title} </span>
		<pp:dynamic name="authorized">
		<div class="action_box">
			<div class="action_img">
				<ul>
					<li><a href="todos.php?pId={@pp:id}&amp;action=new" class="action_add"> Neues Todo</a></li>
					<li><a href="projects.php?id={@pp:id}&amp;action=edit" class="action_edit">Bearbeiten</a></li>
					<li><a href="projects.php?id={@pp:id}&amp;action=delete" class="action_delete">L&ouml;schen</a></li>
					<li><a href="projects.php?pId={@pp:id}&amp;action=unshare" class="action_unshare">Einziehen</a></li>
					<!-- 
					<li class="sep">&nbsp;</li>
					<li><a href="projects.php?action=new" class="action_add"> Neues Projekt</a></li>
					 -->
				</ul>
			</div>
		</div>
		</pp:dynamic>
	</div>
	<div class="clearer">&nbsp;</div>
	<p>
		{@pp:text}
	</p>
	<div id="personen">
		<div id="select_user">
			<div class="block_border_dark">
				<h2>Benutzer ausw&auml;hlen:</h2>
				<div class="seperator">&nbsp;</div>
				<div id="user_options">&nbsp;</div><br />
				<input type="button" onclick="addUser({@pp:id});" value="Hinzuf&uuml;gen"/> <input type="button" onclick="closePopUp();" value="Abbrechen" />
			</div>
		</div>
		<h2>Personen: <pp:dynamic name="authorized1"><a href="javascript:void(0);" onclick="showAddUser();" class="action_add" >Benutzer hinzuf&uuml;gen</a></pp:dynamic></h2>
		<ul id="all_users">
		<pp:dynamic name="user">
			<li id="list_user_{@pp:pId}_{@pp:id}">
				<script type="text/javascript">
				<!--
					$(document).ready(function() {usedIds.push({@pp:id});});
				//-->
				</script>
				<pp:dynamic name="ersteller">
					<a href="javascript:void(0);" onclick="deleteUser({@pp:id}, {@pp:pId});" class="action_unlink"> 
						<img src="{@pp:core}{@pp:tpl_folder}/img/actions/unlink.png"/>
					</a>
				</pp:dynamic>
				<a href="profile.php?id={@pp:id}">
					{@pp:name} {@pp:extra}
				</a>
			</li>
		</pp:dynamic>
		</ul>
	</div>
	<br /><br />
	<div id="todos">
	     <h2>{@pp:todoCount} Todos <pp:dynamic name="authorized2"><a href="todos.php?pId={@pp:id}&amp;action=new" class="action_add">Todo hinzuf&uuml;gen</a></pp:dynamic></h2>
	     <div class="block_content">		
			<pp:dynamic name="todos">
			<div class="todo_block_small block_border project_todo_block" id="todo_block_{@pp:id}">
	              <span class="title">{@pp:title}</span>
	              <span class="desc">
	                  <strong>Status:</strong> <img src="{@pp:base}{@pp:tpl_folder}/img/status/{@pp:status_img}.png" class="status"/> {@pp:status}<br />
	                  Bis {@pp:target_date} zu erledigen<br />
	                  <div id="todo_show_link_{@pp:id}" style="margin-top: 4px;">
	                  	<a href="todos.php?id={@pp:id}&amp;{@pp:public}={@pp:p_id}" class="action_view" >&nbsp;</a> 
	                  	<a href="todos.php?id={@pp:id}&amp;{@pp:public}={@pp:p_id}&amp;action=edit" class=" action_edit" >&nbsp;</a> 
	                  	<a href="todos.php?id={@pp:id}&amp;{@pp:public}={@pp:p_id}&amp;action=delete" class=" action_delete" >&nbsp;</a> 
					  </div>
	              </span>
	         </div>
			</pp:dynamic>
			<pp:dynamic name="no_todos">
			<div class="no_messages">Keine Todos vorhanden</div><br />
			</pp:dynamic>
			<div class="clearer">&nbsp;</div>
			<script type="text/javascript">
	         	<!--
	         	<pp:dynamic name="todo_scripts">
		             $('#todo_show_link_{@pp:id}').hide();
		             $('#todo_block_{@pp:id}').mouseover(function () {$('#todo_show_link_{@pp:id}').show();});
	                 $('#todo_block_{@pp:id}').mouseout(function () {$('#todo_show_link_{@pp:id}').hide();});
	            </pp:dynamic>
	            //-->
	         </script>
		</div>
	</div>
	<br />
	<div id="messages" >
	     <h2>{@pp:msg_count} Nachrichten</h2>
	     <div class="block_content block_border">
	     	<pp:dynamic name="messages">
	 		<div class="message_block2">
	 			<span class="title">{@pp:title}</span>
	 			<span class="meta">am {@pp:date} von <a href="profile.php?id={@pp:u_id}">{@pp:u_name}</a></span>
	 			<div class="content">
	 				{@pp:text}
	 				<span class="reply_count action_msg_count"><a href="discussions.php?lID={@pp:lId}">{@pp:reply_count} Antwort(en)</a></span>
	 			</div>
	 		</div>
	 		</pp:dynamic>
	 		<pp:dynamic name="no_msgs">
			<div class="no_messages">Keine Nachrichten vorhanden</div>
			</pp:dynamic>
	 		<div id="message_actions">
	 			<a href="discussions.php?lID={@pp:id}">Alle Nachrichten anzeigen</a>
	 		</div>
	 		<div class="clearer">&nbsp;</div>
		</div>
	</div>	
	<div class="clearer">&nbsp;</div>
</div>
<script type="text/javascript">
<!--
	var alreadyAdded = '<span class="msg_error">Dieser User ist schon zum Todo hinzugef&uuml;gt.</span>';
	var addSuccess = '<span class="msg_info">Der User wurde erfolgreich hinzugef&uuml;gt.</span>';
	var deleteSuccess = '<span class="msg_info">Der User wurde erfolgreich gel&ouml;scht.</span>';
	var newUser = new Array('<li id="todo_user_{@pp:tId}_', '"><a href="profile.php?id=', '">', '</a> <a href="javascript:void(0);" onclick="deleteUser(', ',', ');" class="action_unlink"> <img src="{@pp:core}{@pp:tpl_folder}/img/actions/unlink.png"/></a></li>');	
//-->
</script>